<script setup>
import { ref } from 'vue'
const count = ref(0) // {value:0}
function validate () {
  console.log('validate')
}
defineExpose({
  count,
  validate
})
</script>
<template>
  <div>我是子组件----{{ count }}</div>
</template>
<style></style>
